package com.binyouwei.designpatterns.structural_type.decorate;

/**
 * @author 宾有为
 * @date 2024/7/11 19:49
 * @link https://blog.csdn.net/baidu_41616022?type=blog
 * @describe：
 **/
public class DecorateRedShapeDecorator extends DecorateShapeDecorator{
    public DecorateRedShapeDecorator(DecorateShape decorateShape) {
        super(decorateShape);
    }

    @Override
    public void draw() {
        decorateShape.draw();
        setRedBorder(decorateShape);
    }

    private void setRedBorder(DecorateShape decorateShape) {
        System.out.println("Border Color: Red");
    }
}

